import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import { setupMock } from './mock'

const app = createApp(App)

setupMock()
// 开发环境启用Mock
if (import.meta.env.MODE === 'development') {
    import('./mock/mock.js').then(({ default: mock }) => {
        console.log('Mock enabled')
    })
}


app.use(router)
app.use(Antd)

app.mount('#app')